package com.itheima.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.service.TestService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: cx
 * @date: 2020/2/23-1:26
 * @Version: 1.0.0
 */

@RequestMapping("/test")
@RestController //所有方法都返回json数据
public class TestContrlooer {
    @Reference
    TestService testService;

    @RequestMapping("/hello")
    public String hello(){
        return testService.hello();
    }
}
